#ifndef BSP_SW_IIC1_H
#define BSP_SW_IIC1_H

#include "bsp.h"

#define IIC1_TYPE GPIOC
#define IIC1_SDA_PIN GPIO_Pin_5 // SDA
#define IIC1_SCL_PIN GPIO_Pin_6 // SCL

typedef enum
{
    SDA_OUT = 0x00,
    SDA_IN,
} io_config_t;

void bsp_sw_iic1_init(void);                                                             // 引脚初始化
uint8_t bsp_iic_sw_send_data(uint8_t addr, uint8_t reg, uint8_t *send_buf, uint8_t len); // 连续发送数据
uint8_t bsp_iic_sw_rece_data(uint8_t addr, uint8_t reg, uint16_t *rece_buf);             // 连续发送数据

#endif
